package com.biz.primus.ms.member.service;

import com.biz.primus.ms.base.service.AbstractBaseService;
import com.biz.primus.ms.member.dao.redis.MemberIntegralChangeRedisDao;
import com.biz.primus.ms.member.dao.redis.MemberIntegralRuleRedisDao;
import com.biz.primus.ms.member.dao.repository.MemberIntegralChangeRepository;
import com.biz.primus.ms.member.dao.repository.MemberIntegralRuleRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 会员积分
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
@Slf4j
@Service
public class MemberIntegralService extends AbstractBaseService
{
    private final MemberIntegralRuleRedisDao memberIntegralRuleRedisDao;

    private final MemberIntegralRuleRepository memberIntegralRuleRepository;

    private final MemberIntegralChangeRedisDao memberIntegralChangeRedisDao;

    private final MemberIntegralChangeRepository memberIntegralChangeRepository;

    @Autowired
    public MemberIntegralService(MemberIntegralRuleRedisDao memberIntegralRuleRedisDao, MemberIntegralRuleRepository memberIntegralRuleRepository,
                                 MemberIntegralChangeRedisDao memberIntegralChangeRedisDao, MemberIntegralChangeRepository memberIntegralChangeRepository)
    {
        this.memberIntegralRuleRedisDao = memberIntegralRuleRedisDao;
        this.memberIntegralRuleRepository = memberIntegralRuleRepository;
        this.memberIntegralChangeRedisDao = memberIntegralChangeRedisDao;
        this.memberIntegralChangeRepository = memberIntegralChangeRepository;
    }
}
